home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3p / uscpsema.z / uscpsema
Encoding:
Text File  |  1998-10-20  |  1.6 KB  |  67 lines

  1.  
  2.  
  3.  
  4. UUUUSSSSCCCCPPPPSSSSEEEEMMMMAAAA((((3333PPPP))))                                                      UUUUSSSSCCCCPPPPSSSSEEEEMMMMAAAA((((3333PPPP))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      uscpsema - conditionally acquires a semaphore
  10.  
  11. CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<uuuulllloooocccckkkkssss....hhhh>>>>
  13.  
  14.      iiiinnnntttt uuuussssccccppppsssseeeemmmmaaaa ((((uuuusssseeeemmmmaaaa____tttt ****sssseeeemmmmaaaa))));;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      _u_s_c_p_s_e_m_a attempts to acquire the semaphore specified by _s_e_m_a. If the
  18.      semaphore is not available (its count is less than zero), _u_s_c_p_s_e_m_a
  19.      returns immediately with an indication that the semaphore is not
  20.      available.
  21.  
  22. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  23.      usinitsema(3P), usnewsema(3P), uspsema(3P), ustestsema(3P), usvsema(3P).
  24.  
  25. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  26.      _u_s_c_p_s_e_m_a returns a 0 if the semaphore is not acquired and 1 if the
  27.      semaphore is acquired.  _u_s_c_p_s_e_m_a can only return an error (-1) if the
  28.      internal semaphore data structure is corrupted.
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.